/* ProductCard 组件样式 - BEM 命名规范 */
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
}

.product-card__content {
  padding: 12px;
}

.product-card__name {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__price-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.product-card__price {
  font-size: 16px;
  font-weight: 600;
  color: #ff4757;
}

.product-card__original-price {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.product-card__sales {
  font-size: 12px;
  color: #666;
} 